<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection -->
<html lang="en" xmlns:th="http://www.thymeleaf.org/">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <div th:replace="header::common_resource"></div>
</head>
<body>
    <div th:fragment="top">
        <div class="header_con">
            <div class="header">
                <div class="welcome fl">欢迎来到天天生鲜!</div>
                <div class="fr">
                    <div class="login_info fl">
                        欢迎您：<em>张 山</em>
                    </div>
                    <div class="login_btn fl">
                        <a th:href="@{/user/getLoginPage}">登录</a>
                        <span>|</span>
                        <a href="/user/register">注册</a>
                    </div>
                    <div class="user_link fl">
                        <span>|</span>
                        <a href="/user/getUserCenterPage">用户中心</a>
                        <span>|</span>
                        <a href="/cart/getCartListPage">我的购物车</a>
                        <span>|</span>
                        <a href="/order/getOrderListPage">我的订单</a>
                    </div>
                </div>
            </div>
        </div>
        <div class="search_bar clearfix">
            <a href="/" class="logo fl"><img src="/images/logo.png"></a>
            <div class="search_con fr">
                <input type="text" class="input_text fl" name="name" placeholder="搜索商品" id="nameId">
                <input type="button" class="input_btn fr" name="btn" th:value="搜索" onclick="selectByName()">
            </div>
        </div>
        <script>
            selectByName = function () {
                window.open('/product/selectByName?name=' + $('#nameId').val(), "_blank");
            }
        </script>
    </div>

</body>



</html>